/*
 * #depends subsonic-centerpanel.js
 * #depends subsonic-bottombar.js
 * #depends subsonic-playerbar.js
 */
Ext.setup({
    tabletStartupScreen: 'tablet_startup.png',
    phoneStartupScreen: 'phone_startup.png',
    icon: 'icon.png',
    glossOnIcon: false,
    onReady: function() {    
        var panel = new Ext.Panel({
            fullscreen: true,
            layout: 'fit',
            dockedItems: [
                new Ext.ux.mattgoldspink.PlayerBar(), 
                new Ext.ux.mattgoldspink.BottomBar()
                ],
             items: [
                new Ext.ux.mattgoldspink.CenterPanel()
             ],
             listeners: {
                afterrender: function(){
                    Ext.dispatch({
                        controller: 'Ext.ux.mattgoldspink.subsonic.controllers.Setup',
                        action    : 'detect'
                    });
                } // end afterrender
            }// end listeners
        });


    }
});
